<template>
  <div class="setting">
    <div>
    <a-button class="btn" @click="showDrawer">
    </a-button>
    <a-drawer
      width="50%"
      :title="$t('settings.settings')"
      style="text-align: center;"
      :placement="placement"
      :closable="false"
      :visible="visible"
      @close="onClose"
    >
      <div>
        <slot></slot>
      </div>
    </a-drawer>
  </div>
  </div>
</template>

<script>
export default {
  name: 'PlaymusicSetting',
  data() {
    return {
      visible: false,
      placement: 'right',
    };
  },
  methods: {
    showDrawer() {
      this.visible = true;
    },
    onClose() {
      this.visible = false;
    },
  },
};
</script>

<style lang="scss" scoped>
/deep/ .btn{
    position: absolute;
    height: 38px;
    left: 0px;
    top: 0px;
    opacity: 0;
    border-radius: 8px;
    width: 125px;
}
</style>
